import Vue from 'vue'
import Vuex from 'vuex'
import userModule from './user'
import createPersistedState from 'vuex-persistedstate'

Vue.use(Vuex)

export default new Vuex.Store({
  plugins: [createPersistedState()],
  strict: true,
  modules: {
    user: userModule
  }
})
